package com.thinkit.bigdata.web.coremet;

import com.thinkit.bigdata.core.ConfigHelper;
import com.thinkit.bigdata.core.util.es.elasticsearch.EsCrud;
import com.thinkit.bigdata.web.model.bus.BusVoiceDetails;

import java.util.Map;
import java.util.concurrent.BlockingQueue;

/**
 * 系统常量定义类
 */
public class SystemStatic {

    /**
     * es-API
     */
    public static EsCrud crud;

    /**
     * 导出话单明细
     */
    public static BlockingQueue<BusVoiceDetails> queue;

    /**
     * 各省ftp信息
     */
    public static Map<String, Map<String, String>> FTP_CONFIG_MAP = null;
    /**
     * 5G省份城市
     */
    public static Map<String,Object> PROVINCE_CITY_MAP = null;
    /**
     * 挂机方
     */
    public static Map<String, String> ONHOOK_MAP = null;
    /**
     * 满意度
     */
    public static Map<String, String> SATISFACTION_MAP = null;
    /**
     * 客户星级
     */
    public static Map<String, String> CUSTOMERLEVEL_MAP = null;


    /**
     * ES 信息
     */
    public static String ES_IP = ConfigHelper.getString("es.ip", "172.16.153.149");
    public static String ES_PORT = ConfigHelper.getString("es.port", "9300");
    public static String AUDIO_ES_INDEX = ConfigHelper.getString("audio.es.index", "audio");
    public static String AUDIO_ES_TYPE = ConfigHelper.getString("audio.es.type", "info");
    public static String COUNT_ES_INDEX = ConfigHelper.getString("count.es.index", "result");
    public static String COUNT_ES_TYPE = ConfigHelper.getString("count.es.type", "task");
    public static String STATISTICS_ES_INDEX = ConfigHelper.getString("statistics.es.index", "nlp");
    public static String STATISTICS_ES_TYPE = ConfigHelper.getString("statistics.es.type", "info");
    public static String ES_CLUSTER_NAME = ConfigHelper.getString("es.cluster.name", "elasticsearch");

    /**
     * 本地存放的音频和文件路径
     */
    public static String SYSTEM_USER_PATH_EXPORT = System.getProperty("user.home") + "/EXPORT/";
    public static String SYSTEM_USER_PATH_AUDIO = System.getProperty("user.home") + "/AUDIO/";

    /**
     * FTP存放文件路径
     */
    public static String FTP_PATH_EXPORT_VOICE = "/EXPORT/VOICE/";
    public static String FTP_PATH_EXPORT_APPROVAL = "/EXPORT/APPROVAL/";

    /**
     * 标注系统url
     */
    public static String TAG_URL = ConfigHelper.getString("tag.url");

}
